﻿namespace iS3.Server.MetaConfig.Models
{
    public class PropertyMate : BaseMate
    {
        public string unit { get; set; }
        public bool isKey { get; set; }
        public bool rawISKey { get; set; }
        public string example { get; set; }
        public object rawDataTypeParam2 { get; set; }
        public string texture { get; set; }
        public bool isPrimary { get; set; }
        public bool ignoreShow
        {
            get; set;
        }
        public bool canBeOrder { get; set; }
        public int maxLength { get; set; }
        public PropertyMate(string propertyName, string dataType, string description, bool nullable, string unit, LangDict langDict,

            string regularExp = "", bool isKey = false, string Purpose = "", string rawDataType = "", string rawDataTypeParam = null,
            bool rawISKey = false, string example = "", object rawDataTypeParam2 = null, bool isPrimary = false, bool ignoreShow = false, bool canBeOrder = false, int maxLength = 10) :
            base(propertyName, dataType, description, nullable, langDict, regularExp, Purpose, rawDataType, rawDataTypeParam)
        {
            this.unit = unit;
            this.isKey = isKey;
            this.rawISKey = rawISKey;
            this.example = example;
            this.rawDataTypeParam2 = rawDataTypeParam2;

            this.isPrimary = isPrimary;
            this.ignoreShow = ignoreShow;
            this.canBeOrder = canBeOrder;
            this.maxLength = maxLength;
        }
    }
}